package com.biubiushop.exception;

public class IllegalOperationException extends RuntimeException {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    private String code;

    private String errorMsg;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public IllegalOperationException() {
        super();
    }

    public IllegalOperationException(String errorMsg) {
        super(errorMsg);
        this.code = "201";
        this.errorMsg = errorMsg;
    }

}
